package cn.zjweu.service.impl;

import cn.zjweu.mapper.UserMapper;
import cn.zjweu.pojo.User;
import cn.zjweu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;



    @Override
    public List<User> getAllUsers() {
        List<User> allUsers = userMapper.getAllUsers();
        return allUsers;
    }

    @Override
    public User getById(Long createBy) {
        return userMapper.getById(createBy);
    }
}
